package com.mrx.xcitools.service;

import org.springframework.stereotype.Service;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Mr.X
 * @since 2024-03-10 下午 5:58:26
 */
@Service
public class MavenBuildLogService {

    private static final Map<Integer, String> logMap = new ConcurrentHashMap<>();

    public void collectLogs(Integer id, String log) {
        logMap.put(id, log);
    }

    public String getLog(Integer id) {
        return logMap.get(id);
    }

}
